package com.weilai.service;

import com.github.pagehelper.PageInfo;
import com.weilai.domain.Thought;
import com.weilai.domain.Videos;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface ThoughtService {
    //发布想法
    void add(Thought thought);
    //删除想法
    void deleteById(int id);
    //修改想法
    void update(Thought thought);
    //查询别人所有想法
    List<Thought> selectAllUsersThought(int userId);
    //查询自己所有想法
    List<Thought> selectMyAllThought(int userId);
    //根据id查询想法
    Thought selectById(int id);
    //在首页查询所有想法
    PageInfo<Thought> selectAll(int pageNum, int pageSize);

   List<Thought> selectByUserId(int userId);

    // 按 userid 删除想法
    public void deleteUserById(int userId);
}
